<?php

namespace app\common\repository\book;

use app\common\model\book\Book as BookModel;

class C
{
    public function __construct(
        BookModel $bookModel
    )
    {
        $this->bookModel = $bookModel;
    }

    public function create($entity)
    {
        $this->bookModel->data($entity);
        $this->bookModel->save();
        return $this->bookModel;
    }
}
